package com.asy.ui.base;

import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.xinzhang.R;

public class UploadCache {

	 private View baseView;  
     private TextView titleTextView;
     private TextView descextView;
     
     private ImageView imageView;
     private Button DeleteButton;
     private Button RestartButton;
     
	public UploadCache(View baseView) {  
         this.baseView = baseView;  
     }  

     public Button getDeleteButton() {
    	 
    	  if (DeleteButton == null) {  
    		  DeleteButton = (Button) baseView.findViewById(R.id.upload_delete);  
          }  
          return DeleteButton;  
	}
     
	public Button getRestartButton() {
		  if (RestartButton == null) {  
			  RestartButton = (Button) baseView.findViewById(R.id.upload_restart);  
          }  
          return RestartButton;  
	}


	public ImageView getImageView() {  
         if (imageView == null) {  
             imageView = (ImageView) baseView.findViewById(R.id.uploadimageview);  
         }  
         return imageView;  
     }

 
	public TextView getTitleTextView() {
		if(titleTextView==null)
		{
			titleTextView=(TextView)baseView.findViewById(R.id.upload_title);
		}
		return titleTextView;
	}

	
	public TextView getDescTextView() {
		if(descextView==null)
		{
			descextView=(TextView)baseView.findViewById(R.id.upload_desc);
		}
		return descextView;
		
	}

	
	
	
	
}
